/* ROXPRO — what the theme adds around the shared design system (rox.css), 27.10.26:
   the local Rubik font, the skip link, and resets for WordPress / WooCommerce markup on direction-A pages. */

/* Rubik, variable (weights 300–900), served from the theme — one file per script, the browser loads only what a page uses */
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/rubik-var-hebrew.woff2) format('woff2');
  unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/rubik-var-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/rubik-var-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* skip link: hidden until a keyboard reaches it */
.skip-link.vh:focus{position:fixed!important;top:8px;right:8px;width:auto;height:auto;clip:auto;z-index:100;padding:12px 16px;border-radius:12px;background:var(--ink);color:#fff;font-weight:600}

/* WordPress admin bar (logged-in admins only): the fixed layers start under it */
html.rox body.admin-bar .topbar{top:var(--wp-admin--admin-bar--height,32px)}
@media (min-width:1024px){ html.rox body.admin-bar .dk-hd{top:var(--wp-admin--admin-bar--height,32px)} }

/* the home page's main heading (h1) stays for screen readers also for a new visitor, whose greeting is not shown
   (before: no h1 at all on the home page for a new visitor — accessibility check 30.10.26) */
html.new .hello{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
@media (min-width:1024px){ html.new .hd{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0;margin:0} }

/* ---- the computer: a product opens as its page, and its photo travels there from the card (Claude's choice, 12.11.26) ----
   A view transition between two pages (rox.js goProduct / vtMark puts the name on the clicked card's photo). Only a product page
   coming in is animated: the list fades into it while the photo moves to its place; on the way back the photo returns to its card
   when the browser kept the list as it was. Every other change of page looks as before (the new page simply shows). A browser that
   doesn't know these rules ignores them and the page just opens. Never with "less motion", never on the phone. */
@media (min-width:1024px) and (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root){display:none}
  ::view-transition-new(root){animation:none;mix-blend-mode:normal}
  :root:has(body.single-product)::view-transition-old(root){display:block;animation:none}   /* the list stays whole underneath... */
  :root:has(body.single-product)::view-transition-new(root){animation:rox-vt-in .26s ease both}   /* ...and the product page comes in over it (two half-seen pages at once looked busy) */
  #pdImg{view-transition-name:rox-pd}
  ::view-transition-group(rox-pd){animation-duration:.44s;animation-timing-function:cubic-bezier(.32,.72,0,1)}
  ::view-transition-old(rox-pd),::view-transition-new(rox-pd){width:100%;height:100%;object-fit:contain}
}
@keyframes rox-vt-in{from{opacity:0}}
