/* Jet demo (JS-15102): Poppins, Jet's app font — self-hosted latin subset,
   4 weights × ~8 KB (OFL-1.1, from @fontsource/poppins 5.3.0; 800 renders
   as 700). `font-display: optional`: never swaps after first paint (no CLS,
   no render delay); a cold first visit may stay on the system stack, every
   later load uses Poppins from cache. Not preloaded on purpose. */
@font-face {
  font-family: "Jet Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/jet/poppins-latin-400-normal.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: "Jet Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/jet/poppins-latin-500-normal.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: "Jet Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/jet/poppins-latin-600-normal.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: "Jet Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/jet/poppins-latin-700-normal.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;
}

/* Jet demo (JS-15102): the global body font is commented out in
   styles/_base.scss and other tenants set it per Typography component. Jet
   components inherit, so without this every Jet page falls back to Times. */
body {
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

:root {
  --baseWhite: #ffffff;

  /* FONTS NEW
     Jet demo (JS-15102, perf): the platform font stack instead of Montserrat.
     The variable woff2 is 201 KB at the highest fetch priority, the largest
     single request competing with the first paint on a phone; the system UI
     font (SF / Roboto) costs nothing and suits the dense fast-grocery look. */
  --fontFamily1:
    "Jet Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --fontFamily2:
    "Jet Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --fontFamily3:
    "Jet Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  /* UIKit Fonts */
  --font-heading: var(--fontFamily1);
  --font-heading-alt: var(--fontFamily2);
  --font-text: var(--fontFamily2);

  /* FONTS OLD */
  --headingH1: var(--header-300-medium);
  --headingH2: var(--header-150-medium);
  --headingH3: var(--header-100-medium);
  --headingH4: var(--header-50-medium);

  --subtitle1: var(--alt-header-100-semibold);
  --subtitle2: var(--text-400-semibold);
  --subtitle3: var(--text-400-medium);

  --body1: var(--text-200-semibold-high);
  --body2: var(--text-200-medium-high);
  --body3: var(--text-200-semibold);
  --body4: var(--text-200-medium);

  --caption1: var(--text-100-semibold);
  --caption2: var(--text-100-medium);
  --caption3: var(--text-50-semibold);

  --button1: var(--text-200-medium);

  --price1: var(--text-300-semibold);
  --price2: var(--text-100-medium);
  --price3: var(--alt-header-100-semibold);
  --price4: var(--text-100-medium);
  --price5: var(--alt-header-100-semibold);
  --price6: var(--text-200-medium);
  --font-weight-medium: var(--header-300-medium);

  /* NUTRITION OLD */
  --nutritionLow: #0eb44d;
  --nutritionLowBg: #e7f7ed;
  --nutritionMedium: #f97313;
  --nutritionMediumBg: #fef1e7;
  --nutritionHigh: #e5243f;
  --nutritionHighBg: #fce9ec;

  --tileMask: linear-gradient(
    180deg,
    rgba(27, 26, 26, 0) 30%,
    rgba(27, 26, 26, 1) 100%
  );
  --tileMaskHalf: linear-gradient(
    180deg,
    rgba(27, 26, 26, 0) 50%,
    rgba(27, 26, 26, 1) 100%
  );

  /* COLORS NEW */
  --text-in-button: #2b2439;
  --text-primary: #2b2439;
  --text-brand: #d4a541;
  --icon-primary: #2b2439;
  --icon-primary-inverse: #2b2439;
  --text-in-button-inverse: #ffffff;
  --stroke-brand: #675688;
  --stroke-brand-subtle: #d741a3;
  --icon-in-button: #2b2439;
  --icon-in-button-inverse: #2b2439;

  --graphic-regular-brand: #551d72;
  --graphic-regular-brand-hover: #8b1d65;
  --graphic-regular-brand-2: #1d6ac7;
  --graphic-transparent-brand-0: #f6d11000;
  --graphic-transparent-brand-10: #f6d1101a;
  --graphic-transparent-brand-15: #f6d11026;
  --graphic-transparent-brand-25: #f6d11040;
  --graphic-transparent-brand-35: #f6d11059;
  --graphic-transparent-brand-50: #f6d11080;
  --graphic-transparent-brand-75: #f6d110bf;
  --background-bg-primary: #ffffff;

  --action-brand: #fcdc83;
  --action-brand-hover: #efd757;
  --action-secondary: #dad4e5;
  --action-secondary-hover: #baafcf;
  --action-secondary-transparent: #5759b81a;
  --action-primary: #2b2439;
  --action-primary-hover: #45395a;
  --action-primary-inverse: #2b2439;
  --action-primary-hover-inverse: #45395a;

  /* Layer */
  --layer-brand-inverse: #c0288b;

  /* COLORS OLD */
  --brandAtom900: var(--icon-brand);
  --brandAtom700: var(--icon-brand);
  --headerBackground: var(--bg-content);
  --brandAtom100: var(--surface-transparent-2);
  --brandAtom50: var(--surface-transparent-1);

  --navBarIconFill: var(--icon-brand);
  --headerApp: var(--bg-base-inverse);
  --brandTwo700: var(--icon-brand);

  --seed900: #1b1a1a;
  --seed800: #393636;
  --seed500: #696364;
  --seed400: #837e7f;
  --seed300: #a6a2a3;
  --seed200: #c9c6c7;
  --seed100: #e4e3e3;
  --seed50: #f7f6f6;
  --seed00: #ffffff;

  --system500Suc: var(--system-success);
  --system50Suc: var(--graphic-transparent-white-92);
  --system500War: var(--system-warning);
  --system50War: var(--graphic-transparent-white-92);
  --system500Err: var(--system-error);
  --system50Err: var(--graphic-transparent-white-92);
  --system050OverlayMode: var(--surface-transparent-6);
  --system020HoverMode: var(--surface-transparent-4);

  --checkbox: var(--action-brand-hover);
  --star: var(--action-primary);
  --like: var(--system-error);
  --footer: var(--bg-base-inverse);
  --buttonPrimary: var(--action-brand);
  --buttonPrimaryHover: var(--action-brand-hover);
  --buttonSecondary: var(--action-secondary);
  --buttonSecondaryHover: var(--action-secondary-hover);
  --buttonCircle: var(--bg-content);
  --buttonCircleIcon: var(--icon-primary);

  --badgeExpress: var(--graphic-regular-black);
  --badgeDiscount: var(--graphic-regular-black);
  --badgeMulti: var(--system-success);
  --badgeBundle: var(--graphic-regular-black);
  --badgeCounter: var(--icon-brand);

  --input200InputHov: var(--surface-transparent-2);
  --input50InputDefault: var(--surface-transparent-1);

  --text00Inv: var(--text-primary-inverse);
  --text900Prim: var(--text-primary);
  --text400Sec: var(--text-tertiary);
  --text300Tre: var(--text-placeholder);
  --text700Acc: var(--text-secondary);
  --textHeader: var(--text-primary);
  --textTitle: var(--text-primary);
  --textButtonPrim: var(--text-in-button);
  --textCategory: var(--graphic-regular-white);
  --textProductCard: var(--text-in-button);

  /* NEW TOKENS FROM FIGMA */

  /* System */
  --system-success: #388b66;
  --system-success-hover: #287d5a;
  --system-warning: #d4a541;
  --system-warning-hover: #7c6123;
  --system-warning-bright: #7c6123;
  --system-error: #f63d68;
  --system-error-hover: #e31b54;
  --system-error-light: #ff6384;
  --system-error-subtle: #e31b541a;
  --system-error-medium: #e31b542b;
  --system-warning-subtle: #fa86551f;
  --system-warning-medium: #fa86552b;
  --system-success-subtle: #0676471a;
  --system-success-medium: #0676472b;
  --system-neutral-1-subtle: #5759b81a;
  --system-neutral-1-medium: #5759b840;
  --system-neutral-2-subtle: #d7d9db52;
  --system-neutral-2-medium: #d7d9db80;
  --system-link: #675688;
  --system-link-hover: #473b5e;
  --system-success-inverse: #388b66;
  --system-success-hover-inverse: #287d5a;
  --system-warning-inverse: #d4a541;
  --system-warning-hover-inverse: #7c6123;
  --system-warning-bright-inverse: #7c6123;
  --system-error-inverse: #f63d68;
  --system-error-hover-inverse: #e31b54;
  --system-error-light-inverse: #ff6384;
  --system-error-subtle-inverse: #e31b542b;
  --system-error-medium-inverse: #e31b5440;
  --system-warning-subtle-inverse: #fa86551f;
  --system-warning-medium-inverse: #fa86552b;
  --system-success-subtle-inverse: #0676471a;
  --system-success-medium-inverse: #0676472b;
  --system-neutral-1-subtle-inverse: #5759b82b;
  --system-neutral-1-medium-inverse: #5759b840;
  --system-neutral-2-subtle-inverse: #d7d9db52;
  --system-neutral-2-medium-inverse: #d7d9db80;
  --system-link-inverse: #7f6ca3;
  --system-link-hover-inverse: #473b5e;

  /* Text */
  --text-primary: #2b2439;
  --text-secondary: #7f6ca3;
  --text-tertiary: #a89ac2;
  --text-placeholder: #5759b859;
  --text-disabled: #2d2f3340;
  --text-in-button: #2b2439;
  --text-brand: #d4a541;
  --text-primary-inverse: #fcfcfd;
  --text-secondary-inverse: #d7d9dba3;
  --text-tertiary-inverse: #d7d9db80;
  --text-disabled-inverse: #d7d9db66;
  --text-brand-inverse: #d4a541;

  /* Icon */
  --icon-primary: #2b2439;
  --icon-secondary: #7f6ca3;
  --icon-tertiary: #a89ac2;
  --icon-placeholder: #5759b859;
  --icon-disabled: #2d2f3340;
  --icon-in-button: #2b2439;
  --icon-brand: #d4a541;
  --icon-primary-inverse: #fcfcfd;
  --icon-secondary-inverse: #d7d9dba3;
  --icon-tertiary-inverse: #d7d9db80;
  --icon-disabled-inverse: #d7d9db66;
  --icon-brand-inverse: #d4a541;

  /* Stroke */
  --stroke-primary: #2d2f332b;
  --stroke-secondary: #2d2f3324;
  --stroke-tertiary: #2d2f331a;
  --stroke-quaternary: #2d2f330f;
  --stroke-strong: #000000;
  --stroke-brand: #675688;
  --stroke-brand-subtle: #baafcf;
  --stroke-primary-inverse: #d7d9db52;
  --stroke-secondary-inverse: #d7d9db2e;
  --stroke-tertiary-inverse: #d7d9db24;
  --stroke-quaternary-inverse: #d7d9db1a;
  --stroke-strong-inverse: #ffffff;
  --stroke-brand-inverse: #675688;
  --stroke-brand-subtle-inverse: #baafcf;

  /* Bg */
  --bg-base: #ffffff;
  --bg-base-stable: #ffffff;
  --bg-content: #ffffff;
  --bg-base-inverse: #1b1722;
  --bg-base-stable-inverse: #1b1722;
  --bg-content-inverse: #2b2439;

  /* Surface */
  --surface-transparent-1: #191a400a;
  --surface-transparent-2: #191a400f;
  --surface-transparent-3: #191a401a;
  --surface-transparent-4: #191a4040;
  --surface-transparent-5: #191a4059;
  --surface-transparent-6: #191a4080;
  --surface-transparent-7: #191a40a3;
  --surface-transparent-8: #191a40cc;
  --surface-transparent-9: #191a40eb;
  --surface-transparent-1-inverse: #d7d9db12;
  --surface-transparent-2-inverse: #d7d9db1a;
  --surface-transparent-3-inverse: #d7d9db24;
  --surface-transparent-4-inverse: #d7d9db52;
  --surface-transparent-5-inverse: #d7d9db66;
  --surface-transparent-6-inverse: #d7d9db80;
  --surface-transparent-7-inverse: #d7d9dba3;
  --surface-transparent-8-inverse: #ffffffb8;
  --surface-transparent-9-inverse: #ffffffeb;

  /* Action */
  --action-brand: #fcdc83;
  --action-brand-hover: #efd757;
  --action-primary: #2b2439;
  --action-primary-hover: #2b2439;
  --action-secondary: #dad4e5;
  --action-secondary-hover: #baafcf;
  --action-secondary-transparent: #5759b81a;
  --action-secondary-transparent-hover: #5759b82b;
  --action-brand-inverse: #fcdc83;
  --action-brand-hover-inverse: #efd757;
  --action-primary-inverse: #ffffff;
  --action-primary-hover-inverse: #ffffffeb;
  --action-secondary-inverse: #dad4e5;
  --action-secondary-hover-inverse: #baafcf;
  --action-secondary-transparent-inverse: #5759b81a;
  --action-secondary-transparent-hover-inverse: #5759b82b;

  /* Navigation */
  --navigation-text-primary: #2b2439;
  --navigation-text-secondary: #7f6ca3;
  --navigation-text-tertiary: #a89ac2;
  --navigation-text-in-button: #2b2439;
  --navigation-text-in-button-2: #ffffff;
  --navigation-text-brand: #d4a541;
  --navigation-icon-primary: #2b2439;
  --navigation-icon-secondary: #7f6ca3;
  --navigation-icon-tertiary: #a89ac2;
  --navigation-icon-in-button: #2b2439;
  --navigation-icon-brand: #d4a541;
  --navigation-stroke-primary: #2d2f332b;
  --navigation-stroke-secondary: #2d2f3324;
  --navigation-stroke-tertiary: #2d2f331a;
  --navigation-stroke-strong: #000000;
  --navigation-stroke-brand: #fcdc83;
  --navigation-stroke-brand-subtle: #f6ebaf;
  --navigation-action-brand: #fcdc83;
  --navigation-action-brand-hover: #efd757;
  --navigation-action-primary: #000000;
  --navigation-action-primary-hover: #000000eb;
  --navigation-bg: #ffffff;
  --navigation-bg-2: #ffffff;
  --navigation-surface: #2d2f330f;
  --navigation-surface-2: #2d2f331a;

  /* Graphic */
  --graphic-regular-white: #ffffff;
  --graphic-regular-black: #000000;
  --graphic-regular-brand: #551d72;
  --graphic-regular-brand-light: #fde97c;
  --graphic-regular-brand-hover: #d4a541;
  --graphic-regular-brand-2: #551d72;
  --graphic-regular-multibuy: #388b66;
  --graphic-regular-discount: #551d72;
  --graphic-regular-review: #551d72;
  --graphic-regular-red: #c64154;
  --graphic-regular-red-pink: #f95792;
  --graphic-regular-orange-dark: #d78460;
  --graphic-regular-orange: #f79575;
  --graphic-regular-yellow: #fde97c;
  --graphic-regular-green: #69e5b3;
  --graphic-regular-green-medium: #48b381;
  --graphic-regular-green-dark: #3a9e75;
  --graphic-regular-green-dark-2: #0b643b;
  --graphic-regular-cyan: #69d0e4;
  --graphic-regular-blue-light: #7baff3;
  --graphic-regular-blue: #044dae;
  --graphic-regular-blue-dark: #3e4784;
  --graphic-regular-violet: #7a85ed;
  --graphic-regular-pink: #d398ef;
  --graphic-regular-rose: #eb7dba;
  --graphic-regular-gray-neutral: #a9a9cb;
  --graphic-regular-gray-warm: #8e9aa5;
  --graphic-regular-gray-light: #f2f3f3;
  --graphic-regular-gray-light-2: #e6e7e8;
  --graphic-regular-gray-dark: #363a40;
  --graphic-muted-red: #e69b95;
  --graphic-muted-red-pink: #f8edef;
  --graphic-muted-orange-dark: #cba99a;
  --graphic-muted-orange: #ebd2b5;
  --graphic-muted-yellow: #efdbb3;
  --graphic-muted-green: #a6dec7;
  --graphic-muted-cyan: #bcdfe6;
  --graphic-muted-blue-light: #bbcee8;
  --graphic-muted-blue: #96b1d4;
  --graphic-muted-blue-dark: #545b89;
  --graphic-muted-violet: #c8c0dd;
  --graphic-muted-pink: #e3c6e3;
  --graphic-muted-rose: #eab4d2;
  --graphic-muted-gray-neutral: #bebed1;
  --graphic-muted-gray-warm: #aea9a6;
  --graphic-transparent-white-7: #ffffff12;
  --graphic-transparent-white-10: #ffffff1a;
  --graphic-transparent-white-14: #ffffff24;
  --graphic-transparent-white-25: #ffffff40;
  --graphic-transparent-white-40: #ffffff66;
  --graphic-transparent-white-55: #ffffff8c;
  --graphic-transparent-white-70: #ffffffb2;
  --graphic-transparent-white-92: #ffffffeb;
  --graphic-transparent-black-5: #0000000d;
  --graphic-transparent-black-10: #0000001a;
  --graphic-transparent-black-15: #00000026;
  --graphic-transparent-black-25: #00000040;
  --graphic-transparent-black-40: #00000066;
  --graphic-transparent-black-55: #0000008c;
  --graphic-transparent-black-70: #000000b2;
  --graphic-transparent-black-92: #000000eb;
  --graphic-transparent-gray-40: #20293966;
  --graphic-transparent-blue-25: #5d68a640;
  --graphic-transparent-blue-10: #5d68a61a;
  --graphic-transparent-red-25: #e31b5440;
  --graphic-transparent-yellow-25: #f7900940;
  --graphic-transparent-green-25: #388b6640;
  --graphic-transparent-green-dark-2-25: #0b643b40;
  --graphic-transparent-green-40: #92d5ba66;
  --graphic-transparent-cyan: #69e3fa66;
  --graphic-transparent-violet: #a5b4e680;
  --graphic-transparent-pink: #d6c6ee66;
  --graphic-transparent-gray-neutral: #a9a9cb4d;
  --graphic-transparent-gray-warm: #8e9aa533;
  --graphic-transparent-brand-0: #f6d11000;
  --graphic-transparent-brand-10: #f6d1101a;
  --graphic-transparent-brand-15: #f6d11026;
  --graphic-transparent-brand-25: #f6d11040;
  --graphic-transparent-brand-35: #f6d11059;
  --graphic-transparent-brand-50: #f6d11080;
  --graphic-transparent-brand-75: #f6d110bf;
  --graphic-transparent-brand-2-0: #551d7200;
  --graphic-transparent-brand-2-10: #551d721a;
  --graphic-transparent-brand-2-15: #551d7226;
  --graphic-transparent-brand-2-25: #551d7240;
  --graphic-transparent-brand-2-35: #551d7259;
  --graphic-transparent-brand-2-50: #551d7280;
  --graphic-transparent-brand-2-75: #551d72bf;
}

/* ---------------------------------------------------------------------------
 * Jet (Amman) demo — JS-15102. Density + motion tokens for the "fast grocery"
 * layer in src/components/jet/. Brand = Jet's own app (reference/jet-app.md):
 * sky blue + ink + sale red, orange only as an accent (FEATURED pills).
 * `--jet-brand` is Jet's header sky blue (#4DAEF5) for surfaces and decoration
 * that carry no white text: white on it is 2.4:1, so text on it is ink (7.2:1).
 * `--jet-brand-strong` is the deep blue for every blue surface under white
 * text and blue text on white (4.97:1 both ways) — buttons, active tab, links.
 * ------------------------------------------------------------------------- */
:root {
  --jet-brand: #4daef5;
  --jet-brand-strong: #0e72c4;
  --jet-brand-hover: #0b5fa5;
  --jet-brand-ink: #ffffff;
  --jet-brand-soft: #eaf5fe;
  /* on-blue ink for the header (7.2:1 on --jet-brand) */
  --jet-on-brand: #1a1a1f;
  /* orange accent only: FEATURED pills (accent-strong on accent-soft 4.7:1) */
  --jet-accent: #f97316;
  --jet-accent-strong: #c2410c;
  --jet-accent-soft: #fff1e3;
  --jet-ink: #1a1a1f;
  --jet-ink-muted: #6b6b7b;
  --jet-surface: #ffffff;
  --jet-surface-2: #f6f6f8;
  --jet-stroke: #ececf0;
  --jet-sale: #e11d48;
  --jet-promo: #ffd54a;
  --jet-promo-ink: #1a1a1f;
  --jet-pastels:
    #fff1d6, #e5f6ec, #e8f0ff, #fde8ef, #efe8ff, #e3f7f8, #fff4e0, #eef7dc;

  /* radii (review #16): 6 badges/strips · 12 images/cards/search ·
     16 tiles/banners/floating cart · 9999 chips/stepper */
  --jet-r-xs: 6px;
  --jet-r-s: 12px;
  --jet-r-m: 16px;
  --jet-r-pill: 9999px;
  /* elevation only for floating things (cart bar, sheets, the "+") */
  --jet-shadow-float: 0 8px 24px rgb(20 20 30 / 0.16);
  --jet-shadow-btn: 0 2px 6px rgb(0 0 0 / 0.12);
  /* bottom stack 94px (over the 88 budget on purpose): the client's floating
     pattern needs air — tab-bar capsule 44 floating 6 above the edge, a 4px
     gap, then the View Cart pill 40. Footprint --jet-nav-h = 6 + 44 + 4. */
  --jet-nav-bar: 44px;
  --jet-nav-inset: 6px;
  --jet-nav-h: 54px;
  --jet-cart-h: 40px;
  /* pinned part of the sticky JetHeader (search pill bar) */
  --jet-header-pin: 56px;

  /* density */
  --jet-gutter: 12px;
  --jet-gap: 8px;
  --jet-radius: 12px;
  --jet-radius-s: 12px;
  --jet-card-w: 104px;
  --jet-card-img: 96px;
  --jet-tile-cols: 4;
  --jet-fs-xs: 10px;
  --jet-fs-s: 11px;
  --jet-fs-m: 12px;
  --jet-fs-l: 14px;
  --jet-fs-title: 18px;

  /* motion */
  --jet-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jet-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --jet-dur-fast: 140ms;
  --jet-dur: 240ms;
  --jet-dur-page: 280ms;
}

/* Jet: page transitions (src/components/jet/jetMotion.ts → usePageTransition) */
[data-jet-anim="fade"] {
  animation: jetPageFade var(--jet-dur-page) var(--jet-ease) both;
}
[data-jet-anim="left"] {
  animation: jetPageFromRight var(--jet-dur-page) var(--jet-ease) both;
}
[data-jet-anim="right"] {
  animation: jetPageFromLeft var(--jet-dur-page) var(--jet-ease) both;
}
@keyframes jetPageFade {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes jetPageFromRight {
  from {
    opacity: 0.2;
    transform: translate3d(42%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes jetPageFromLeft {
  from {
    opacity: 0.2;
    transform: translate3d(-42%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Jet: shimmer skeletons */
.jet-shimmer {
  background:
    linear-gradient(100deg, #f6f6f8 30%, #ededf1 50%, #f6f6f8 70%) 0 0 / 300%
    100%;
  animation: jetShimmer 1.2s linear infinite;
}
@keyframes jetShimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

/* Jet: one family everywhere (review #5). The body had no font-family at all,
   so anything without an explicit font (chips, tabs, section titles, V3
   Typography fallbacks) rendered in the UA serif (Times). */
body {
  font-family: var(--fontFamily1);
  color: var(--jet-ink);
  -webkit-font-smoothing: antialiased;
}
/* JetFloatingCart sets this to its height while visible, so the bar never
   covers the end of the page. `html body` beats _base.scss's `padding: 0`,
   which loads after this file. */
html body {
  padding-bottom: var(--jet-cart-space, 0px);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
html:root {
  --font-serif: var(--fontFamily1);
  --font-sans: var(--fontFamily1);
}

/* Jet: platform tokens mapped onto the one brand system (review #7). The
   pastel yellow action (#fcdc83, 1.3:1 under white text) and the purple greys
   retire; brand buttons are Jet deep blue with white text (4.97:1). html:root so
   these also win over any :root default that loads after the theme link. */
html:root {
  --action-brand: var(--jet-brand-strong);
  --action-brand-hover: var(--jet-brand-hover);
  --action-brand-inverse: var(--jet-brand-strong);
  --action-brand-hover-inverse: var(--jet-brand-hover);
  --buttonPrimary: var(--jet-brand-strong);
  --buttonPrimaryHover: var(--jet-brand-hover);
  --text-in-button: #ffffff;
  --icon-in-button: #ffffff;
  --icon-in-button-inverse: #ffffff;
  --textProductCard: var(--jet-ink);
  --navigation-action-brand: var(--jet-brand-strong);
  --navigation-action-brand-hover: var(--jet-brand-hover);
  --navigation-stroke-brand: var(--jet-brand-strong);
  --navigation-text-brand: var(--jet-brand-strong);
  --navigation-icon-brand: var(--jet-brand-strong);
  --navigation-text-secondary: var(--jet-ink-muted);
  --navigation-icon-secondary: var(--jet-ink-muted);

  --text-primary: var(--jet-ink);
  --text-secondary: var(--jet-ink-muted);
  --text-tertiary: #757580;
  --text-brand: var(--jet-brand-strong);
  --text-brand-inverse: var(--jet-brand);
  --icon-primary: var(--jet-ink);
  --icon-secondary: var(--jet-ink-muted);
  --icon-tertiary: #757580;
  --icon-brand: var(--jet-brand-strong);
  --text-placeholder: #757580;
  --icon-placeholder: #757580;
  --stroke-brand: var(--jet-brand-strong);
  --stroke-brand-subtle: #b9ddfb;
  --system-link: var(--jet-brand-strong);
  --system-link-hover: var(--jet-brand-hover);
  --system-error: var(--jet-sale);
  /* #388b66 was 4.2:1 on white at 10px (cart discount %); this is 5.0:1. */
  --system-success: #2e7d57;
  --system-success-inverse: #2e7d57;

  --graphic-regular-brand: var(--jet-brand-strong);
  --graphic-regular-brand-2: var(--jet-brand-strong);
  --graphic-regular-brand-hover: var(--jet-brand-hover);
  --graphic-regular-discount: var(--jet-sale);
  --graphic-regular-review: var(--jet-ink);
  --graphic-transparent-brand-0: #4daef500;
  --graphic-transparent-brand-10: #4daef51a;
  --graphic-transparent-brand-15: #4daef526;
  --graphic-transparent-brand-25: #4daef540;
  /* the shared card's in-cart overlay paints white price text on this:
     at 35 % it read 1.6:1, so it carries 70 % of the strong brand */
  --graphic-transparent-brand-35: #0e72c4b3;
  --graphic-transparent-brand-50: #4daef580;
  --graphic-transparent-brand-75: #4daef5bf;

  --badgeDiscount: var(--jet-sale);
  --badgeMulti: var(--jet-promo);
  --star: var(--jet-ink);
  --checkbox: var(--jet-brand-strong);
}

/* Jet: the page bounce. styles/_base.scss turns the native overscroll off on
   html (no pull-to-refresh, no glow) and jetMotion.useRubberBand draws an
   elastic bounce in JS instead. On iOS WebKit, which has a real native bounce,
   entry-client sets html[data-jet-native-bounce] and the JS bounce stays off,
   so the two never double up. */
html[data-jet-native-bounce] {
  overscroll-behavior-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-jet-anim],
  .jet-shimmer {
    animation: none !important;
  }
}

/* JS-15102 PDP: card → PDP shared-element view transition (pdp/jetHeroTransition.ts). */
::view-transition-group(*) {
  animation-duration: 260ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* w5 — Jet PDP sheet tokens (JS-15102), append-only */
.ocado,
:root {
  --jet-sale-soft: #fdecef;
  --jet-sale-ink: #c3102f;
  --jet-ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}
