/* Joymax theme: fonts, colours, base, header, footer, weekend offer bar. Colours come only from the tokens below.
   Our own parts use the "jx-" class prefix so they never clash with Astra, WooCommerce, Elementor or old classes;
   selectors start with body.joymax-theme so Astra/Elementor button and link styles can't leak in. */

/* ---------- Fonts (saved in the theme, no Google request) ---------- */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/chakra-petch-500.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: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/chakra-petch-600.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: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/chakra-petch-700.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; }
/* Inter: one file holds all weights (400–600) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter.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: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/tajawal-400-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/tajawal-400-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: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/tajawal-500-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/tajawal-500-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: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/tajawal-700-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/tajawal-700-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; }
/* (0.6.15 speed) Stand-ins while the fonts load: Arial resized to take the same width and line height as Chakra Petch and
   Inter (measured in the browser, 2026-11-30), so text doesn't jump when the real font arrives. Used only for that moment.
   Latin letters only (same range as the real fonts), so Arabic text keeps falling through to the system font as before. */
@font-face { font-family: "Inter fallback"; font-weight: 100 500; src: local("Arial"), local("ArialMT");
  size-adjust: 106%; ascent-override: 91.4%; descent-override: 22.8%; line-gap-override: 0%;
  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: "Inter fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 101.5%; ascent-override: 95.5%; descent-override: 23.8%; line-gap-override: 0%;
  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: "Chakra Petch fallback"; font-weight: 100 500; src: local("Arial"), local("ArialMT");
  size-adjust: 101.7%; ascent-override: 97.5%; descent-override: 30.3%; line-gap-override: 0%;
  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: "Chakra Petch fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 98.3%; ascent-override: 100.9%; descent-override: 31.3%; line-gap-override: 0%;
  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; }

/* ---------- Brand tokens: dark (default) ---------- */
:root {
  color-scheme: dark;
  --ink: #0A0A0B;      /* page */
  --plate: #141417;    /* cards */
  --edge: #2A2A30;     /* borders */
  --paper: #F2F2F2;    /* text level 1 */
  --ash: #A8A8B0;      /* text level 2 */
  --dim: #85858E;      /* text level 3 */
  --gold: #EFC31A;     /* buttons, accents */
  --gold-text: #EFC31A;/* gold as text or thin lines */
  --on-gold: #0A0A0B;  /* text on gold */
  --live: #3DDC84;
  --warn: #FF8A7A;
  --header-bg: rgba(10,10,11,.97);
  --field-bg: #0E0E10;
  --chip-bg: #0A0A0B;
  --badge-edge: #393940;

  --head: "Chakra Petch", "Chakra Petch fallback", "Inter", system-ui, sans-serif;
  --body: "Inter", "Inter fallback", system-ui, sans-serif;
  --ar: "Tajawal", "Inter", system-ui, sans-serif;

  --t-12: 12px; --t-14: 14px; --t-16: 16px; --t-20: 20px; --t-25: 25px; --t-31: 31px; --t-39: 39px; --t-49: 49px; --t-61: 61px;
  --r-card: 12px; --r-btn: 8px; --r-badge: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --in: 220ms; --out: 150ms;
  --wrap: 1200px;

  --glow-1: rgba(239, 195, 26, .22); --glow-2: rgba(138, 103, 0, .10); --glow-size: 1000px 760px;
}

/* ---------- Light (all text pairs pass 4.5:1) ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #F6F5F0;
  --plate: #FFFFFF;
  --edge: #E2E0D8;
  --paper: #141414;
  --ash: #5E5E66;
  --dim: #6E6E76;
  --gold-text: #8A6700;
  --live: #178048;
  --warn: #B3261E;
  --header-bg: rgba(246,245,240,.97);
  --field-bg: #FFFFFF;
  --chip-bg: #F6F5F0;
  --badge-edge: #E2E0D8;
  --glow-1: rgba(239, 195, 26, .20); --glow-2: rgba(239, 170, 60, .08);
}
@media (max-width: 700px) { :root { --glow-size: 520px 520px; --glow-w: 520px; --glow-h: 520px; } }

/* Theme switch: circle reveal (driven by theme.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* (0.6.11) While switching, no part of the page fades on its own (Astra, Elementor, plugins and our hover fades), so
   everything changes together. theme.js sets data-jx-switching for the moment of the switch only.
   ":not(#jx-switch)" only raises strength over other plugins' !important transitions (no element has that id). */
html[data-jx-switching]:not(#jx-switch) *,
html[data-jx-switching]:not(#jx-switch) *::before,
html[data-jx-switching]:not(#jx-switch) *::after { transition: none !important; }

/* ---------- Old colour names point at our tokens (Astra, old header/footer, old shop CSS) ---------- */
html body.joymax-theme {
  --jm-bg: var(--ink);
  --jm-panel: var(--plate);
  --jm-raised: var(--plate);
  --jm-line: var(--edge);
  --jm-text: var(--paper);
  --jm-muted: var(--ash);
  --jm-gold: var(--gold-text);
  --jm-bright: var(--gold);
  --ast-global-color-0: var(--gold);
  --ast-global-color-1: var(--gold);
  --ast-global-color-2: var(--paper);
  --ast-global-color-3: var(--ash);
  --ast-global-color-4: var(--ink);
  --ast-global-color-5: var(--plate);
  --ast-global-color-6: var(--edge);
  --ast-global-color-7: var(--ash);
  --ast-global-color-8: var(--plate);
  --ast-border-color: var(--edge);   /* (0.6.11) Astra's lines (order tables, address boxes) were white in dark mode */
  color-scheme: inherit;
}
/* (0.6.11) Astra's boxed page background (white, from its settings) never fits the theme: off on every theme page
   (plain pages, posts, search, 404). Only the background; Astra's spacing stays. */
html body.joymax-theme.ast-separate-container #content :is(.ast-article-single, .ast-article-post, .ast-article-inner, .error-404, .no-results) {
  background-color: transparent; background-image: none; }
/* (0.6.11) 404 page search box in field colours */
html body.joymax-theme.error404 #content .search-field {
  background: var(--field-bg); color: var(--paper); border: 1px solid var(--edge); border-radius: var(--r-btn); }

/* ---------- Base ---------- */
/* The old plugin and the old Additional CSS paint their own body background/glow with !important and strong selectors;
   :not(#joymax-page) only raises the strength (no element has that id) so our plain page colour + glow win. */
:root body.joymax-theme:not(#joymax-page) {
  background: var(--ink) !important;
  background-image: none !important;
}
html body.joymax-theme {
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body.joymax-theme :is(button, input, select, textarea) { font-family: inherit; }
body.joymax-theme :is(h1, h2, h3, h4, h5, h6) { font-family: var(--head); color: var(--paper); }
body.joymax-theme [lang="ar"], body.joymax-theme [dir="rtl"] { font-family: var(--ar); }
/* "html" first (0.6.9): the old joymax-design plugin's cream focus ring ties with "body.joymax-theme" and loads later */
html body.joymax-theme :focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
/* (0.6.9) Mouse clicks leave no outline (Astra's "a:focus { outline: thin dotted }" and its menu buttons); keyboard
   users still get the gold ring above, because keyboard focus is :focus-visible. Text fields are not listed (untouched). */
body.joymax-theme :is(a, button, summary, [tabindex], [role="button"], .ast-menu-toggle, .menu-toggle, input[type="button"], input[type="submit"], input[type="reset"]):focus:not(:focus-visible) { outline: none; }

/* ---------- Background gold glow: soft, top right, fixed; drifts and pulses on an 8 s loop ---------- */
/* (0.6.14 speed) The layer only covers the glow's own area (top right, the gradient's size + 20 px) instead of the whole
   screen + 140 px on every side: the same picture, about a quarter of the area the graphics card redraws each frame. */
body.joymax-theme::before {
  content: ""; position: fixed; top: -140px; right: -140px; width: calc(var(--glow-w, 1000px) + 20px); height: calc(var(--glow-h, 760px) + 20px);
  z-index: -1; pointer-events: none;
  background: radial-gradient(var(--glow-size) at 100% 0%, var(--glow-1), var(--glow-2) 45%, transparent 100%);
  animation: joymax-glow 8s ease-in-out infinite;   /* (0.6.15) no permanent will-change: the browser lifts it while it moves */
}
@keyframes joymax-glow {
  0%, 100% { transform: translate(0, 0); opacity: .55; }
  50% { transform: translate(-120px, 90px); opacity: 1; }
}
/* (0.6.15 speed) The glow rests (freezes where it is) while the page scrolls; header.js sets html.jx-scrolling. */
html.jx-scrolling body.joymax-theme::before { animation-play-state: paused; }
/* (0.6.15) "Still glow" (Customize → Joymax look, or ?glow=still): same glow, held halfway through its drift. */
body.joymax-theme.jx-glow-still::before { animation: none; transform: translate(-60px, 45px); opacity: .78; }
@media (prefers-reduced-motion: reduce) {
  body.joymax-theme::before { animation: none; opacity: 1; }
}

/* ---------- Shared bits ---------- */
.jx-wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.jx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Footer stays at the bottom on short pages (only the empty space grows) */
body.joymax-theme #page { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
body.joymax-theme #page > #content { flex: 1 0 auto; }
/* Space between the header and the first block on every page this theme shows (0.6.1). Padding, so it can't collapse away
   like a margin; Astra's own top spacing is taken off below so nothing doubles. Demo: 40 px (desktop), 24 px (phones).
   The header is sticky but stays in the page flow, so at the top of a page nothing sits under it. */
html body.joymax-theme #page > #content { padding-top: 40px; }
html body.joymax-theme #page > #content :is(#primary, .ast-woocommerce-container) { margin-top: 0; padding-top: 0; }
@media (max-width: 900px) { html body.joymax-theme #page > #content { padding-top: 24px; } }
/* REMOVE AFTER LAUNCH (see inc/compat.php). Old "My Sticky Bar" notice: hidden while this theme is shown (its files are also stopped in inc/compat.php) */
body.joymax-theme .mysticky-welcomebar-fixed { display: none !important; }

/* ---------- WooCommerce notices on every shop page (0.6.4) ----------
   Product, shop/category, cart, checkout, order received, My Account: "… has been added to your cart", TeraWallet's cashback
   line, coupon/login prompts, errors. Astra/WooCommerce paint them as a near-white box; here: theme card, gold edge + icon
   (red for errors). Text and buttons are WooCommerce's own. (Moved here from shop.css + account.css so all pages match.) */
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner) {
  position: relative; margin: 0 0 16px; padding: 14px 16px 14px 48px; border: 1px solid var(--edge); border-left: 3px solid var(--gold);
  border-radius: var(--r-card); background: var(--plate); color: var(--paper); font: 400 var(--t-14)/1.5 var(--body);
  list-style: none; box-shadow: none; overflow-wrap: anywhere; }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content .woocommerce-error { border-left-color: var(--warn); }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before {
  content: ""; display: block; position: absolute; top: 16px; left: 18px; right: auto; width: 18px; height: 18px; margin: 0;
  font: 0/0 a; color: transparent; background: var(--gold-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.5v.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.5v.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content .woocommerce-error::before { background: var(--warn); }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a:not(.button) {
  color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a.button {
  float: none; flex: none; order: 2; margin: 0; padding: 8px 14px; border: 1px solid var(--gold) !important; border-radius: var(--r-btn);
  background: var(--gold) !important; color: var(--on-gold) !important;   /* (0.6.7) gold filled, same in dark + light */
  font: 600 var(--t-14)/1.2 var(--body); text-transform: none; letter-spacing: 0; text-decoration: none; box-shadow: none;
  transition: background-color var(--out) var(--ease-out), border-color var(--out) var(--ease-out); }
/* Notice with a button ("View cart"): text left, button right (order: 2 above; the button comes first in WooCommerce's
   markup); on phones under the text */
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error):has(> a.button) {
  display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error):has(> a.button)::after { content: none; }
@media (max-width: 600px) {
  html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error):has(> a.button) {
    flex-direction: column; align-items: flex-start; }
}
/* (0.6.5) Loading overlays (cart update, checkout order review, payment, account forms, add to cart): WooCommerce lays a
   white 60 % sheet over the area and Astra Pro draws white "skeleton" pictures on it (opacity forced to 1 with !important).
   Here: the theme's panel colour, see-through, with a small gold spinner. Only the look; WooCommerce decides when it shows. */
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) .blockUI.blockOverlay {
  background: var(--plate) !important; opacity: .72 !important; border: 0 !important; border-radius: var(--r-card);
}
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) .blockUI.blockOverlay::before {
  content: "" !important; display: block !important; position: absolute !important; top: 50% !important; left: 50% !important;
  width: 28px !important; height: 28px !important; margin: -14px 0 0 -14px !important; border: 3px solid var(--edge) !important; border-top-color: var(--gold) !important;
  border-radius: 50% !important; background: none !important; -webkit-mask: none !important; mask: none !important; animation: jx-spin .8s linear infinite !important;
}
@keyframes jx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html body.joymax-theme .blockUI.blockOverlay::before { animation: none !important; }
}
/* (!important: the old catalog-layout plugin paints every product-page button gold with !important. REMOVE AFTER LAUNCH.)
   Hover: "#content#content" because the old joymax-design hover gradient (".joymax-design #content :is(.button, …):not()…:hover")
   counts as more specific than one #content. REMOVE AFTER LAUNCH. */
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content#content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a.button:is(:hover, :focus-visible) {
  --jx-gold-hover: color-mix(in srgb, var(--gold) 80%, #fff);   /* slightly lighter gold */
  border-color: var(--jx-gold-hover) !important; background: var(--jx-gold-hover) !important; color: var(--on-gold) !important; }
html body.joymax-theme:is(.jx-product, .jx-shop, .jx-cart, .jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a.button:focus-visible {
  outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* Reset Astra/Elementor button and link looks on our parts */
body.joymax-theme :is(.jx-header, .jx-footer, .jx-offer, .jx-search) :is(button, a) {
  font-family: inherit; text-transform: none; letter-spacing: normal; text-decoration: none; box-shadow: none;
}
body.joymax-theme :is(.jx-header, .jx-search) button,
body.joymax-theme :is(.jx-header, .jx-search) button:is(:hover, :focus, :active) {
  background: none; border: 0; border-radius: var(--r-btn); padding: 0; margin: 0; min-height: 0; line-height: 1.2;
}

/* ---------- Header ---------- */
body.joymax-theme .jx-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
  /* (0.6.14 speed) No backdrop blur: blurring the page under a sticky bar is redone on every scroll frame by the graphics
     card. The bar is 97% solid instead of 92% + blur, which looks the same. */
  background: var(--header-bg);
  border-bottom: 1px solid var(--edge); color: var(--paper); font-family: var(--body);
}
@media (max-width: 600px) { body.joymax-theme .jx-header { top: 0; } }   /* the admin bar scrolls away on phones */
.jx-header > .jx-wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
body.joymax-theme .jx-brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--paper);
  font: 700 26px/1 var(--head); letter-spacing: .02em; }
body.joymax-theme .jx-brand:hover { color: var(--paper); }
/* Logo as the demo: chevron 40 px tall + "Joymax" 26 px (the name can be switched off in Customize) */
.jx-brand img { width: auto; height: 40px; }
/* Menu as the demo: text 16 px semibold, gold icons 16 px (signal 20 px wide), icon 8 px from text.
   Other items grey; the current page's item (and hover) white, current one with a gold underline. */
.jx-nav { display: flex; gap: 4px; }
body.joymax-theme .jx-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ash);
  font-size: var(--t-16); font-weight: 600; line-height: 1.3; transition: color var(--out) ease; }
body.joymax-theme .jx-nav a:is(:hover, :focus-visible, [aria-current]) { color: var(--paper); }
body.joymax-theme .jx-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold-text); }
.jx-header [lang="ar"] { font-family: var(--ar); }
.jx-ni { width: 16px; height: 16px; flex: none; color: var(--gold-text); }
.jx-ni.jx-wide { width: 20px; }
/* (0.6.16a) Computer menu icons move once each time the pointer enters the whole link (CSS replays it on every new
   hover), or when the link gets keyboard focus. Mouse only for hover; the phone menu has none; off for reduce motion.
   Bag swings from its handle, bars sweep in left to right (the bars are not mirrored in Arabic, so neither is this),
   arrow nudges down twice, Discord tilts its head. Picked from docs/mockups/menu-icons.html. */
@media (prefers-reduced-motion: no-preference) {
  .jx-nav .jx-ni-store { transform-origin: 50% 8%; }
  .jx-nav .jx-ni-discord { transform-origin: 50% 50%; }
  .jx-nav a:focus-visible .jx-ni-store { animation: jx-swing 380ms var(--ease-out); }
  .jx-nav a:focus-visible .jx-ni-status { animation: jx-sweep 340ms var(--ease-out); }
  .jx-nav a:focus-visible .jx-ni-guides { animation: jx-nudge 380ms ease-out; }
  .jx-nav a:focus-visible .jx-ni-discord { animation: jx-tilt 260ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .jx-nav a:hover .jx-ni-store { animation: jx-swing 380ms var(--ease-out); }
  .jx-nav a:hover .jx-ni-status { animation: jx-sweep 340ms var(--ease-out); }
  .jx-nav a:hover .jx-ni-guides { animation: jx-nudge 380ms ease-out; }
  .jx-nav a:hover .jx-ni-discord { animation: jx-tilt 260ms var(--ease-out); }
}
@keyframes jx-swing { 25% { transform: rotate(12deg); } 60% { transform: rotate(-7deg); } 85% { transform: rotate(3deg); } }
@keyframes jx-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes jx-nudge { 25% { transform: translateY(3px); } 50% { transform: none; } 75% { transform: translateY(2px); } }
@keyframes jx-tilt { 50% { transform: rotate(-10deg) scale(1.1); } }

.jx-icons { display: flex; gap: 6px; margin-inline-start: auto; }
body.joymax-theme .jx-header .jx-icon-btn,
body.joymax-theme .jx-search .jx-icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ash); cursor: pointer;
  transition: color var(--out) ease;
}
body.joymax-theme .jx-header .jx-icon-btn:is(:hover, :focus-visible),
body.joymax-theme .jx-search .jx-icon-btn:is(:hover, :focus-visible) { color: var(--paper); }
.jx-icon-btn svg { width: 21px; height: 21px; }
.jx-theme-btn .jx-i-moon { display: none; }
:root[data-theme="light"] .jx-theme-btn .jx-i-sun { display: none; }
:root[data-theme="light"] .jx-theme-btn .jx-i-moon { display: block; }
.jx-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: var(--on-gold); font: 700 11px/18px var(--body); text-align: center; pointer-events: none; }
body.joymax-theme .jx-header .jx-menu-btn { display: none; }

/* Phone menu panel */
.jx-menu-panel { display: none; border-top: 1px solid var(--edge); background: var(--ink); padding: 16px 0 24px; }
.jx-menu-panel[data-open] { display: block; }
/* (0.6.16a) Opening: fades in and drops 8 px (200 ms); closing: 150 ms. CSS only: browsers without "allow-discrete"
   (older Safari/Firefox) simply snap open/closed as before. Reduce motion: no movement (end of this file). */
.jx-menu-panel { opacity: 0; translate: 0 -8px;
  transition: opacity 150ms cubic-bezier(.55,0,1,.45), translate 150ms cubic-bezier(.55,0,1,.45), display 150ms allow-discrete; }
.jx-menu-panel[data-open] { opacity: 1; translate: 0 0;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), display 200ms allow-discrete; }
@starting-style { .jx-menu-panel[data-open] { opacity: 0; translate: 0 -8px; } }
.jx-menu-panel nav { display: grid; }
body.joymax-theme .jx-menu-panel nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--paper);
  font: 600 var(--t-20)/1.2 var(--head); border-bottom: 1px solid var(--edge); }
.jx-menu-panel nav [lang="ar"] { font: 700 var(--t-20)/1.2 var(--ar); }
.jx-menu-panel .jx-ni { width: 18px; height: 18px; }
.jx-menu-panel .jx-ni.jx-wide { width: 22px; }
body.joymax-theme .jx-menu-panel nav a[aria-current] { color: var(--gold-text); }
.jx-menu-tools { display: none; }
body.joymax-theme .jx-header .jx-menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  border-bottom: 1px solid var(--edge); border-radius: 0; color: var(--paper); font: 600 var(--t-20)/1.2 var(--head); text-align: start; cursor: pointer; }
.jx-menu-row svg { width: 18px; height: 18px; flex: none; color: var(--gold-text); }
/* (0.6.11) A mouse/touch click leaves the row white (Astra makes focused buttons gold); gold only for keyboard focus and
   real mouse hover (touch screens keep a "hover" after a tap, so hover is limited to mouse devices) */
body.joymax-theme .jx-header .jx-menu-row:is(:hover, :focus, :focus-visible, :active) { color: var(--paper); border-bottom: 1px solid var(--edge); }
body.joymax-theme .jx-header .jx-menu-row:focus-visible { color: var(--gold-text); }
@media (hover: hover) and (pointer: fine) { body.joymax-theme .jx-header .jx-menu-row:hover { color: var(--gold-text); } }

@media (max-width: 1024px) {
  .jx-nav { display: none; }
  body.joymax-theme .jx-header .jx-menu-btn { display: grid; }
}
@media (max-width: 900px) {
  .jx-header > .jx-wrap { gap: 8px; height: 56px; }
}
@media (max-width: 480px) {
  body.joymax-theme .jx-header .jx-icons > [data-jx-search], body.joymax-theme .jx-header .jx-icons > .jx-theme-btn { display: none; }
  .jx-menu-tools { display: grid; }
  body.joymax-theme .jx-brand { font-size: 22px; gap: 8px; }
  .jx-brand img { height: 34px; }
}

/* ---------- Search box ---------- */
body.joymax-theme .jx-search { width: min(560px, calc(100% - 32px)); margin: 72px auto auto; padding: 12px; border: 1px solid var(--edge);
  border-radius: var(--r-card); background: var(--plate); color: var(--paper); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.jx-search::backdrop { background: rgba(0,0,0,.55); }
/* (0.6.16a) Search box grows from 96 % and fades in (200 ms), backdrop fades (150 ms); closing is instant. */
.jx-search[open] { animation: jx-pop 200ms var(--ease-out); }
.jx-search[open]::backdrop { animation: jx-fade 150ms ease-out; }
@keyframes jx-pop { from { opacity: 0; transform: scale(.96); } }
@keyframes jx-fade { from { opacity: 0; } }

/* (0.6.16a) Cart number bumps (128 %, 320 ms) after an item is added; header.js adds .jx-bump. */
.jx-count.jx-bump { animation: jx-bump 320ms var(--ease-out); }
@keyframes jx-bump { 35% { transform: scale(1.28); } }

/* (0.6.16a) "Added to cart · View cart": WooCommerce's own success notice, moved to the bottom of the screen by header.js
   (product and shop pages only). In: up 12 px + fade 220 ms; out: 180 ms. --jx-lift keeps it above any fixed bottom bar. */
html body.joymax-theme #content#content .woocommerce-message.jx-toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--jx-lift, 0px)); z-index: 60;
  width: max-content; max-width: calc(100% - 32px); margin: 0; translate: -50% 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px);
  transition: opacity 180ms cubic-bezier(.55,0,1,.45), transform 180ms cubic-bezier(.55,0,1,.45); }
html body.joymax-theme #content#content .woocommerce-message.jx-toast.jx-in {
  opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .jx-menu-panel, .jx-menu-panel[data-open] { translate: none; transition: none; }
  .jx-search[open], .jx-search[open]::backdrop, .jx-count.jx-bump { animation: none; }
  html body.joymax-theme #content#content .woocommerce-message.jx-toast { transform: none; transition: none; }
}
.jx-search form { display: flex; align-items: center; gap: 8px; position: relative; }
.jx-search form > svg { position: absolute; left: 12px; width: 20px; height: 20px; color: var(--dim); pointer-events: none; }
body.joymax-theme .jx-search input[type="search"] { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 12px 0 40px; border: 0; border-radius: var(--r-btn);
  background: var(--field-bg); color: var(--paper); font: 400 var(--t-16) var(--body); box-shadow: inset 0 0 0 1px var(--edge); }
body.joymax-theme .jx-search input[type="search"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-text); }
body.joymax-theme .jx-search .jx-search-go, body.joymax-theme .jx-search .jx-search-go:is(:hover, :focus) {
  height: 48px; padding: 0 16px; border-radius: var(--r-btn); background: var(--gold); color: var(--on-gold); font: 700 var(--t-14) var(--body); cursor: pointer; }
@media (max-width: 480px) { body.joymax-theme .jx-search .jx-search-go { display: none; } }

/* (0.6.16b) Live results under the search box: tiles (owner pick "C"), 3 per row, 2 on phones; js/live-search.js. */
body.joymax-theme .jx-search { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 96px); overflow: hidden; display: none; flex-direction: column; }
body.joymax-theme .jx-search[open] { display: flex; }
.jx-live-bar { position: relative; height: 2px; margin: 10px 0 0; overflow: hidden; border-radius: 2px; }
.jx-live-bar.jx-on::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: jx-live-bar 900ms var(--ease-out) infinite; }
@keyframes jx-live-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.jx-live-panel { min-height: 0; margin: 0 -12px -12px; border-top: 1px solid var(--edge); overflow: auto; overscroll-behavior: contain; }
.jx-live-panel[hidden] { display: none; }
.jx-live-hint { margin: 0; padding: 14px 16px; color: var(--dim); font: 400 var(--t-14)/1.5 var(--body); }
body.joymax-theme .jx-live-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px; list-style: none; }
body.joymax-theme .jx-live-list li { margin: 0; min-width: 0; }
body.joymax-theme .jx-search a.jx-live-item { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px; border: 1px solid var(--edge);
  border-radius: var(--r-btn); color: var(--paper); text-decoration: none; }
body.joymax-theme .jx-search a.jx-live-item.jx-act { background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--gold-text); border-color: var(--gold-text); }
.jx-live-pic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-badge); background: var(--chip-bg); }
.jx-live-pic img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.jx-live-sold .jx-live-pic img { filter: grayscale(1) brightness(.5); }
/* (0.6.16d) At most 2 lines, then "…" (long account names); the full name is in the tile's title and read out. */
.jx-live-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font: 600 var(--t-14)/1.25 var(--body); overflow-wrap: anywhere; }
.jx-live-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; }
.jx-live-price { color: var(--ash); font: 400 13px/1.3 var(--body); }
.jx-live-price b { color: var(--paper); font-weight: 700; }
.jx-live-out { color: var(--dim); font: 600 var(--t-12)/1.3 var(--body); }
body.joymax-theme .jx-search a.jx-live-all { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px;
  border-top: 1px solid var(--edge); color: var(--gold-text); font: 600 var(--t-14)/1.4 var(--body); text-decoration: none; }
body.joymax-theme .jx-search a.jx-live-all.jx-act { background: var(--chip-bg); }
@media (hover: hover) and (pointer: fine) {
  body.joymax-theme .jx-search a.jx-live-item:hover { background: var(--chip-bg); }
  body.joymax-theme .jx-search a.jx-live-all:hover { background: var(--chip-bg); }
}
@media (max-width: 600px) { body.joymax-theme .jx-live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .jx-live-bar.jx-on::after { animation: none; width: 100%; opacity: .5; } }

/* (0.6.16b) Product status corner tag (owner pick "3"): dot + word, never colour only. Colours = the Joymax Status plugin's
   own (/status page) so the shop and /status match. On a picture: dark glass in dark mode, white in light mode. */
:root { --st-und: #4CE3A3; --st-upd: #FFAD4B; --st-down: #FF687D; --st-bg: rgba(10,10,11,.82); }
:root[data-theme="light"] { --st-und: #137452; --st-upd: #974500; --st-down: #BA2848; --st-bg: rgba(255,255,255,.94); }
.jx-st-slot[hidden] { display: none !important; }
.jx-st-slot { position: absolute; top: 8px; left: 8px; z-index: 3; pointer-events: none; line-height: 1; }
.jx-st { --c: var(--st-und); display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px 6px 8px; border-radius: var(--r-badge);
  background: var(--st-bg); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c);
  font: 600 var(--t-12)/1 var(--body); white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.jx-st[data-s="updating"] { --c: var(--st-upd); }
.jx-st[data-s="down"] { --c: var(--st-down); }
.jx-st > i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.jx-st[data-s="undetected"] > i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.jx-st[data-s="updating"] > i { animation: jx-st-blink 1.6s ease-in-out infinite; }
@keyframes jx-st-blink { 50% { opacity: .35; } }
html.jx-scrolling .jx-st > i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .jx-st > i { animation: none !important; } }
/* Product page: on the main picture's corner, fixed while the pictures slide (the spot sits in the gallery box). */
html body.joymax-theme.jx-product #content div.product > .woocommerce-product-gallery { position: relative; }
html body.joymax-theme.jx-product #content .woocommerce-product-gallery > .jx-st-pp { top: 12px; left: 12px; z-index: 5; }
html body.joymax-theme.jx-product #content .woocommerce-product-gallery > .jx-st-pp .jx-st { padding: 7px 11px 7px 9px; font-size: 13px; }

/* ---------- Footer ---------- */
body.joymax-theme .jx-footer { margin-top: 88px; border-top: 1px solid var(--edge); color: var(--ash); font-family: var(--body); }
/* (0.6.15 speed) The browser skips drawing the footer until it comes near the screen; its last height is remembered. */
body.joymax-theme .jx-footer > .jx-wrap { content-visibility: auto; contain-intrinsic-block-size: auto 160px; }
/* One row as the demo (0.4.3 look, restored in 0.6.2): JOYMAX + copyright | links (centred) | payment icons. Three fixed
   columns, so the links never push the icons to a second line; on narrower computers the links wrap inside the middle
   column. Phones/small tablets (≤ 900 px): stacked, left-aligned. */
.jx-footer .jx-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 32px; padding-block: 32px; }
body.joymax-theme .jx-footer .jx-brand { font-size: 24px; line-height: normal; text-transform: uppercase; }   /* demo: normal line height */
.jx-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }                     /* demo: 24 px between links */
@media (max-width: 900px) {
  .jx-footer .jx-wrap { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .jx-footer nav { justify-content: flex-start; gap: 8px 24px; }
}
body.joymax-theme .jx-footer nav a { color: var(--ash); font-size: var(--t-14); }
body.joymax-theme .jx-footer nav a:is(:hover, :focus-visible) { color: var(--paper); }
body.joymax-theme .jx-copy { display: flex; align-items: center; margin: 4px 0 0; color: var(--dim); font-size: var(--t-14); }
.jx-flag { display: inline-block; flex: none; width: 22px; height: 11px; margin-inline-end: 7px; box-shadow: 0 0 0 1px #b8bcc466;
  background-image: linear-gradient(90deg, #f00 25%, transparent 25%), linear-gradient(#00732f 33.33%, #fff 33.33% 66.66%, #000 66.66%); }
.jx-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jx-pay span { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border: 1px solid var(--badge-edge); border-radius: 6px; background: #fff; }
.jx-pay img { display: block; width: auto; max-width: 110px; height: 31px; object-fit: contain; }

/* ---------- Weekend offer bar (dark in both themes) ----------
   Folded (0 height, invisible) until offer-bar.js opens it. Opening slides the page down + fades in over 0.9 s (0.6.2, was
   0.4 s); closing with × stays 0.4 s (the closed state's own transition below). */
.jx-offer { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 400ms var(--ease-out), opacity 400ms var(--ease-out); }
.jx-offer[hidden] { display: none; }
.jx-offer[data-open] { grid-template-rows: 1fr; opacity: 1;   /* (0.6.16a) 300 ms, was 900 ms: the page moved under the reader */
  transition: grid-template-rows 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.jx-offer[data-instant] { transition: none; }
.jx-offer-clip { min-height: 0; overflow: hidden; }
.jx-offer-box { position: relative; color: #F2F2F2;
  background: linear-gradient(90deg, rgba(239,195,26,.10), transparent 30%, transparent 70%, rgba(239,195,26,.10)), #0A0A0B;
  border-bottom: 1px solid rgba(239,195,26,.45); }
/* Button exactly centred: English to its left, Arabic to its right; × at the far right */
.jx-offer-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 56px; padding: 6px 60px; }
body.joymax-theme .jx-offer p { margin: 0; color: #F2F2F2; }
body.joymax-theme .jx-offer .jx-offer-en { justify-self: end; font: 700 var(--t-16)/1.3 var(--body); white-space: nowrap; }
body.joymax-theme .jx-offer .jx-offer-ar { justify-self: start; font: 700 var(--t-16)/1.3 var(--ar); white-space: nowrap; }
.jx-offer-mid { display: flex; align-items: center; justify-content: center; }
.jx-offer-time { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 4px; margin-inline-end: -8px; padding: 4px 8px;
  border-radius: var(--r-badge); background: #0A0A0B; color: #EFC31A; font: 600 var(--t-12)/1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jx-offer-time svg { width: 13px; height: 13px; }
body.joymax-theme .jx-offer .jx-offer-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-btn);
  background: var(--gold); color: #0A0A0B; font: 700 var(--t-14)/1.2 var(--body); white-space: nowrap;
  transition: background-color var(--out) ease, transform 160ms ease-out;
}
body.joymax-theme .jx-offer .jx-offer-btn [lang="ar"] { font: 700 var(--t-14)/1.2 var(--ar); }
body.joymax-theme .jx-offer .jx-offer-btn:hover { background: #FFD43A; color: #0A0A0B; }
body.joymax-theme .jx-offer .jx-offer-btn:active { transform: scale(.97); }
body.joymax-theme .jx-offer .jx-offer-btn:focus-visible { outline: 2px solid #F2F2F2; outline-offset: 2px; }
.jx-offer-ic { width: 18px; height: 18px; flex: none; }
.jx-offer-slash { opacity: .55; }
/* One soft gold shine across the button, once, after the bar has opened (first page of a visit only).
   0.6.2: slower (1.8 s, was 0.9 s) and softer (wider, fainter band: 30% white, was 55%), even speed so it glides */
.jx-offer-btn::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.3) 50%, transparent 80%); transform: translateX(-120%); }
.jx-offer[data-shine] .jx-offer-btn::after { animation: jx-shine 1800ms ease-in-out 1 forwards; }
@media (prefers-reduced-motion: reduce) { .jx-offer-btn::after { display: none; } }
@keyframes jx-shine { to { transform: translateX(120%); } }
body.joymax-theme .jx-offer .jx-offer-x,
body.joymax-theme .jx-offer .jx-offer-x:is(:hover, :focus, :active) {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; margin: 0;
  background: none; border: 0; border-radius: var(--r-btn); color: #A8A8B0; cursor: pointer; min-height: 0; }
body.joymax-theme .jx-offer .jx-offer-x:is(:hover, :focus-visible) { color: #F2F2F2; background: rgba(255,255,255,.06); }
body.joymax-theme .jx-offer .jx-offer-x:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.jx-offer-x svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  /* two lines, still symmetrical: English left + Arabic right of the centre line, then the button centred */
  .jx-offer-in { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 6px 44px 10px; }
  body.joymax-theme .jx-offer .jx-offer-en { font-size: 14px; }
  body.joymax-theme .jx-offer .jx-offer-ar { font-size: 15px; }
  .jx-offer-mid { grid-column: 1 / -1; grid-row: 2; }
  /* inside the button: icon | Arabic over English | timer badge */
  body.joymax-theme .jx-offer .jx-offer-btn { display: grid; grid-template-columns: auto auto auto; column-gap: 8px; row-gap: 1px; justify-items: start;
    padding: 4px 12px; font-size: 11.5px; line-height: 1.15; }
  .jx-offer-btn .jx-offer-ic { grid-row: 1 / span 2; align-self: center; }
  body.joymax-theme .jx-offer .jx-offer-btn [lang="ar"] { font-size: 12.5px; line-height: 1.2; justify-self: start; }
  .jx-offer-btn .jx-offer-slash { display: none; }
  .jx-offer-time { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0 -4px 0 2px; font-size: 11.5px; gap: 4px; padding: 4px 7px; }
  .jx-offer-time svg { width: 12px; height: 12px; }
  body.joymax-theme .jx-offer .jx-offer-x, body.joymax-theme .jx-offer .jx-offer-x:is(:hover, :focus, :active) { top: 0; right: 0; translate: none; }
}

/* ---------- Reduce motion: nothing slides or shines ---------- */
@media (prefers-reduced-motion: reduce) {
  .jx-offer { transition: none; }
  .jx-offer-btn::after { display: none; }
  body.joymax-theme .jx-offer .jx-offer-btn:active { transform: none; }
}
